package org.example.cicdi.service.impl.third;


import org.example.cicdi.oConvertUtils;
import org.example.codegenerate.modelext.WebVo.domian.table.TableVoDomain;
import org.example.codegenerate.modelext.WebVo.domian.table.WebModelVo;
import org.springframework.stereotype.Component;
@Component
public class HasTVOAndNoTable extends AbstractTVOAndTable{
    public HasTVOAndNoTable(){
        //this.localtableCondition=new TableCondition();
        localtableCondition.setHasorNotSelfAnnotationTVO(EnumConsantExistType.HasTVO.getStatus());
        localtableCondition.setHasorNotJpaTableAnnotation(EnumConsantExistType.NoTable.getStatus());
    }
    @Override
    protected void execute(Class<?> cl, WebModelVo webModelVo) {
        TableVoDomain tableVoDomain=webModelVo.getTableVoDomain();
        setTVOwithTVOTag(cl,tableVoDomain,webModelVo);


        //tableVoDomain.setTableName(table.name());
        tableVoDomain.setTableName(oConvertUtils.camelToUnderline(cl.getSimpleName()));//还有转变为驼峰的下划线的表达方式


    }
}
